package com.byhealth.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byhealth.dao.TestDao;
import com.byhealth.service.TestService;

@Service
public class TestServiceImpl implements TestService{

	@Resource
	TestDao testDao;
	
	/**
	 * 测试事务
	 * @return
	 */
	@Transactional
	public Boolean test(){
		testDao.test();
		return true;
	}

	public void setTestDao(TestDao testDao) {
		this.testDao = testDao;
	}
	
	
}
